Lobby {
	ClassName { ChessGame }
	Seats { 2 }
}

board {
	width { 8 }
	height { 8 }
	gfxwidth { 384 }
	gfxheight { 384 }
	gfx { gfx/chessbgnd.gfx:regular }
	selectedgfx { gfx/chesspieces.gfx:selected }
	delaygfx { gfx/chesspieces.gfx:delay }
	delaygfx1 { gfx/chesspieces.gfx:delay_pretty }
	hintgfx { gfx/chesspieces.gfx:hint }
	tilegfx { gfx/tiles.gfx:tile }
	tilegfx1 { gfx/tiles.gfx:tile2 }
	deadtilegfx { gfx/tiles.gfx:dead }
	deadtilegfx1 { gfx/tiles.gfx:dead2 }
}

players {
	player {
		name { White }
		team { White }
	}
	player {
		name { Black }
		team { Black }
	}
}

pieceTypes {
	king
	queen
	bishop
	knight
	rook
	pawn
}

pieceDefinitions {
	player {
		name { White }
		boardrotation { 0 }
		piece {
			name { queen }
			gfx { gfx/chesspieces.gfx:whitequeen }
			gfx1 { gfx/chesspieces.gfx:whitequeen_pretty }
			move {
				x { 1 } y { 0 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 1 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 0 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 1 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
		}
		piece {
			name { bishop }
			gfx { gfx/chesspieces.gfx:whitebishop }
			gfx1 { gfx/chesspieces.gfx:whitebishop_pretty }
			move {
				x { 1 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 1 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
		}
		piece {
			name { knight }
			gfx { gfx/chesspieces.gfx:whiteknight }
			gfx1 { gfx/chesspieces.gfx:whiteknight_pretty }
			move {
				x { 2 } y { -1 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { 2 } y { 1 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { 1 } y { 2 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { -1 } y { 2 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { -2 } y { 1 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { -2 } y { -1 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { -1 } y { -2 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { 1 } y { -2 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
		}
		piece {
			name { rook }
			gfx { gfx/chesspieces.gfx:whiterook }
			gfx1 { gfx/chesspieces.gfx:whiterook_pretty }
			move {
				x { 1 } y { 0 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 0 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
		}
		piece {
			name { pawn }
			gfx { gfx/chesspieces.gfx:whitepawn }
			gfx1 { gfx/chesspieces.gfx:whitepawn_pretty }
			promote { y { 0 } to { queen } }
			move {
				x { 0 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 } noattack
			}
			move {
				x { 0 } y { -1 } numHops { 2 } hopTicks { 100 } delay { 1000 } 
firstmoveonly noattack
			}
			move {
				x { -1 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 } 
mustattack
			}
			move {
				x { 1 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 } 
mustattack
			}
			move {
				x { -1 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 } 
enpassant { pawn }
			}
			move {
				x { 1 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 } enpassant 
{ pawn }
			}
		}
		piece {
			name { king }
			win
			gfx { gfx/chesspieces.gfx:whiteking }
			gfx1 { gfx/chesspieces.gfx:whiteking_pretty }
			move {
				x { -2 } y { 0 } numHops { 1 } hopTicks { 200 } delay { 1000 } castle { 
rook } noattack
			}
			move {
				x { 2 } y { 0 } numHops { 1 } hopTicks { 200 } delay { 1000 } castle { 
rook } noattack
			}
			move {
				x { 1 } y { 0 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 1 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 0 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 1 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
		}
	}

	player {
		name { Black }
		boardrotation { 2 }
		piece {
			name { queen }
			gfx { gfx/chesspieces.gfx:blackqueen }
			gfx1 { gfx/chesspieces.gfx:blackqueen_pretty }
			move {
				x { 1 } y { 0 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 1 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 0 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 1 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
		}
		piece {
			name { bishop }
			gfx { gfx/chesspieces.gfx:blackbishop }
			gfx1 { gfx/chesspieces.gfx:blackbishop_pretty }
			move {
				x { 1 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 1 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
		}
		piece {
			name { knight }
			gfx { gfx/chesspieces.gfx:blackknight }
			gfx1 { gfx/chesspieces.gfx:blackknight_pretty }
			move {
				x { 2 } y { -1 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { 2 } y { 1 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { 1 } y { 2 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { -1 } y { 2 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { -2 } y { 1 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { -2 } y { -1 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { -1 } y { -2 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
			move {
				x { 1 } y { -2 } numHops { 1 } hopTicks { 200 } delay { 1000 }
			}
		}
		piece {
			name { rook }
			gfx { gfx/chesspieces.gfx:blackrook }
			gfx1 { gfx/chesspieces.gfx:blackrook_pretty }
			move {
				x { 1 } y { 0 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { 1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 0 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { -1 } numHops { 8 } hopTicks { 100 } delay { 1000 }
			}
		}
		piece {
			name { pawn }
			gfx { gfx/chesspieces.gfx:blackpawn }
			gfx1 { gfx/chesspieces.gfx:blackpawn_pretty }
			promote { y { 7 } to { queen } }
			move {
				x { 0 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 } noattack
			}
			move {
				x { 0 } y { 1 } numHops { 2 } hopTicks { 100 } delay { 1000 } 
firstmoveonly noattack
			}
			move {
				x { -1 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 } 
mustattack
			}
			move {
				x { 1 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 } mustattack
			}
			move {
				x { -1 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 } enpassant 
{ pawn }
			}
			move {
				x { 1 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 } enpassant 
{ pawn }
			}
		}
		piece {
			name { king }
			win
			gfx { gfx/chesspieces.gfx:blackking }
			gfx1 { gfx/chesspieces.gfx:blackking_pretty }
			move {
				x { -2 } y { 0 } numHops { 1 } hopTicks { 200 } delay { 1000 } castle { 
rook } noattack
			}
			move {
				x { 2 } y { 0 } numHops { 1 } hopTicks { 200 } delay { 1000 } castle { 
rook } noattack
			}
			move {
				x { 1 } y { 0 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 1 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { 0 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { -1 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 0 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
			move {
				x { 1 } y { -1 } numHops { 1 } hopTicks { 100 } delay { 1000 }
			}
		}
	}
}

startingPositions {
	piece { x { 0 } y { 0 } player { Black } type { rook } }
	piece { x { 1 } y { 0 } player { Black } type { knight } }
	piece { x { 2 } y { 0 } player { Black } type { bishop } }
	piece { x { 3 } y { 0 } player { Black } type { queen } }
	piece { x { 4 } y { 0 } player { Black } type { king } }
	piece { x { 5 } y { 0 } player { Black } type { bishop } }
	piece { x { 6 } y { 0 } player { Black } type { knight } }
	piece { x { 7 } y { 0 } player { Black } type { rook } }
	piece { x { 0 } y { 1 } player { Black } type { pawn } }
	piece { x { 1 } y { 1 } player { Black } type { pawn } }
	piece { x { 2 } y { 1 } player { Black } type { pawn } }
	piece { x { 3 } y { 1 } player { Black } type { pawn } }
	piece { x { 4 } y { 1 } player { Black } type { pawn } }
	piece { x { 5 } y { 1 } player { Black } type { pawn } }
	piece { x { 6 } y { 1 } player { Black } type { pawn } }
	piece { x { 7 } y { 1 } player { Black } type { pawn } }

	piece { x { 0 } y { 7 } player { White } type { rook } }
	piece { x { 1 } y { 7 } player { White } type { knight } }
	piece { x { 2 } y { 7 } player { White } type { bishop } }
	piece { x { 3 } y { 7 } player { White } type { queen } }
	piece { x { 4 } y { 7 } player { White } type { king } }
	piece { x { 5 } y { 7 } player { White } type { bishop } }
	piece { x { 6 } y { 7 } player { White } type { knight } }
	piece { x { 7 } y { 7 } player { White } type { rook } }
	piece { x { 0 } y { 6 } player { White } type { pawn } }
	piece { x { 1 } y { 6 } player { White } type { pawn } }
	piece { x { 2 } y { 6 } player { White } type { pawn } }
	piece { x { 3 } y { 6 } player { White } type { pawn } }
	piece { x { 4 } y { 6 } player { White } type { pawn } }
	piece { x { 5 } y { 6 } player { White } type { pawn } }
	piece { x { 6 } y { 6 } player { White } type { pawn } }
	piece { x { 7 } y { 6 } player { White } type { pawn } }
}

settings { speed { 1.00 }
delay { 1.00 }
}

events { event { name { SubGameSeedEvent }
timestamp { 52 }
data { 4218443 }
}
event { name { ChessMoveEvent }
timestamp { 38 }
data { e2e4 }
}
event { name { TextEvent } timestamp { 60 } data { "White: TheBalrog vs Black: Juhotus" } }
event { name { ChessMoveEvent }
timestamp { 76 }
data { e7e6 }
}
event { name { ChessMoveEvent }
timestamp { 102 }
data { e4e4 }
}
event { name { ChessMoveEvent }
timestamp { 150 }
data { f7f6 }
}
event { name { ChessMoveEvent }
timestamp { 182 }
data { g7g6 }
}
event { name { ChessMoveEvent }
timestamp { 214 }
data { c2c4 }
}
event { name { ChessMoveEvent }
timestamp { 232 }
data { f8g7 }
}
event { name { ChessMoveEvent }
timestamp { 282 }
data { h7h5 }
}
event { name { ChessMoveEvent }
timestamp { 396 }
data { d2d4 }
}
event { name { ChessMoveEvent }
timestamp { 414 }
data { d7d6 }
}
event { name { ChessMoveEvent }
timestamp { 490 }
data { b2b3 }
}
event { name { TextEvent } timestamp { 500 } data { } }
event { name { ChessMoveEvent }
timestamp { 534 }
data { c7c5 }
}
event { name { ChessMoveEvent }
timestamp { 584 }
data { a2a4 }
}
event { name { ChessMoveEvent }
timestamp { 624 }
data { b7b6 }
}
event { name { ChessMoveEvent }
timestamp { 674 }
data { c8b7 }
}
event { name { ChessMoveEvent }
timestamp { 720 }
data { b8d7 }
}
event { name { ChessMoveEvent }
timestamp { 758 }
data { d8c7 }
}
event { name { ChessMoveEvent }
timestamp { 816 }
data { f2f4 }
}
event { name { ChessMoveEvent }
timestamp { 830 }
data { e8c8 }
}
event { name { ChessMoveEvent }
timestamp { 856 }
data { g2g3 }
}
event { name { ChessMoveEvent }
timestamp { 910 }
data { h2h4 }
}
event { name { ChessMoveEvent }
timestamp { 944 }
data { g8e7 }
}
event { name { ChessMoveEvent }
timestamp { 954 }
data { f1g2 }
}
event { name { ChessMoveEvent }
timestamp { 992 }
data { g1e2 }
}
event { name { ChessMoveEvent }
timestamp { 1042 }
data { c1e3 }
}
event { name { ChessMoveEvent }
timestamp { 1106 }
data { e1f2 }
}
event { name { ChessMoveEvent }
timestamp { 1248 }
data { e4e5 }
}
event { name { ChessMoveEvent }
timestamp { 1432 }
data { f6f5 }
}
event { name { ChessMoveEvent }
timestamp { 1576 }
data { d6d5 }
}
event { name { ChessMoveEvent }
timestamp { 1606 }
data { b3b4 }
}
event { name { ChessMoveEvent }
timestamp { 1658 }
data { d4c5 }
}
event { name { ChessMoveEvent }
timestamp { 1766 }
data { c4d5 }
}
event { name { ChessMoveEvent }
timestamp { 1800 }
data { b6c5 }
}
event { name { ChessMoveEvent }
timestamp { 2034 }
data { b7d5 }
}
event { name { ChessMoveEvent }
timestamp { 2134 }
data { b1d2 }
}
event { name { ChessMoveEvent }
timestamp { 2160 }
data { c8b7 }
}
event { name { ChessMoveEvent }
timestamp { 2254 }
data { d8c8 }
}
event { name { ChessMoveEvent }
timestamp { 2324 }
data { g2d5 }
}
event { name { ChessMoveEvent }
timestamp { 2368 }
data { e3c5 }
}
event { name { ChessMoveEvent }
timestamp { 2386 }
data { h8c8 }
}
event { name { ChessMoveEvent }
timestamp { 2466 }
data { e2c3 }
}
event { name { ChessMoveEvent }
timestamp { 2546 }
data { h8d8 }
}
event { name { ChessMoveEvent }
timestamp { 2582 }
data { a1c1 }
}
event { name { ChessMoveEvent }
timestamp { 2602 }
data { g7f8 }
}
event { name { ChessMoveEvent }
timestamp { 2700 }
data { d1b3 }
}
event { name { ChessMoveEvent }
timestamp { 2706 }
data { d7d7 }
}
event { name { ChessMoveEvent }
timestamp { 2764 }
data { e7d5 }
}
event { name { ChessMoveEvent }
timestamp { 2786 }
data { f2e3 }
}
event { name { ChessMoveEvent }
timestamp { 2850 }
data { d7c5 }
}
event { name { ChessMoveEvent }
timestamp { 3094 }
data { c7b6 }
}
event { name { ChessMoveEvent }
timestamp { 3490 }
data { a4a5 }
}
event { name { ChessMoveEvent }
timestamp { 3572 }
data { b4c5 }
}
event { name { ChessMoveEvent }
timestamp { 3688 }
data { c3d5 }
}
event { name { ChessMoveEvent }
timestamp { 3914 }
data { b3b6 }
}
event { name { ChessMoveEvent }
timestamp { 4060 }
data { d8d5 }
}
event { name { ChessMoveEvent }
timestamp { 4166 }
data { f8c5 }
}
event { name { ChessMoveEvent }
timestamp { 4244 }
data { a7b6 }
}
event { name { ChessMoveEvent }
timestamp { 4300 }
data { d2b3 }
}
event { name { ChessMoveEvent }
timestamp { 4620 }
data { c1c5 }
}
event { name { ChessMoveEvent }
timestamp { 4712 }
data { h1c1 }
}
event { name { ChessMoveEvent }
timestamp { 5202 }
data { c8c8 }
}
event { name { ChessMoveEvent }
timestamp { 5242 }
data { a5b6 }
}
event { name { ChessMoveEvent }
timestamp { 5256 }
data { b6c5 }
}
event { name { ChessMoveEvent }
timestamp { 5292 }
data { b6c5 }
}
event { name { ChessMoveEvent }
timestamp { 5408 }
data { c8c5 }
}
event { name { ChessMoveEvent }
timestamp { 5476 }
data { b7b6 }
}
event { name { ChessMoveEvent }
timestamp { 5748 }
data { b3c5 }
}
event { name { ChessMoveEvent }
timestamp { 6886 }
data { b6b6 }
}
event { name { ChessMoveEvent }
timestamp { 6970 }
data { c5e6 }
}
event { name { TextEvent } timestamp { 6970 } data { "END MOVIE" } }
}


